package com.immunology.service;

import java.util.List;

import com.immunology.dao.UserDao;
import com.immunology.database.transformers.UserTransformer;
import com.immunology.model.User;

public class UserService {
	private UserDao userDao = new UserDao(new UserTransformer());

	public User getUserById(int userId) {
		return userDao.getById(userId);
	}

	public boolean changeUserRole(int id, String role){
		return userDao.changeRole(id, role);
	}
	
	public boolean deleteUserById(int id){
		return userDao.delete(id);
	}
	
	public List<User> getAllUsers(){
		return userDao.getAll();
	}
}
